import LogUtil from '../../../common/baseUtil/LogUtil.js';

let logUtil = new LogUtil();

export default {
    props: {
    /**
         * Whether a single model is displayed or hidden
         */
        itemIsShow: {
            default: true,
        },
    /**
         * String value representing the Preference title
         */
        title: {
            default: '',
        },
    /**
         * Drawable representing the Preference icon
         */
        icon: {
            default: ''
        },
    /**
         * Whether the icon is displayed
         * The default value is false.
         */
        iconShow: {
            default: false
        },
    /**
         * Whether the text status is displayed
         * The default value is false
         */
        stateDescriptionShow: {
            default: false
        },
    /**
         * State description of a single model item
         */
        modelStateDescribe: {
            default: ''
        },
    /**
         * Entry item
         * Whether the icon at the end of a single model item is displayed
         * The default value is true
         */
        entranceToItemShow: {
            default: true
        },
    /**
         * The icon at the end of a single model item
         */
        entranceToItemIcon: {
            default: '/res/image/ic_settings_arrow.png'
        },
    /**
         * item
         */
        item: {},
        showObject: {},
    /**
         * Icon behind title
         */
        dividerShow: {
            default: true
        },
    },
    data() {
        return {
            itemData: this.item
        };
    },
    action() {
        logUtil.info("setting entryComponent action start  this.itemData" + JSON.stringify(this.itemData));
        this.$emit('actionType', {
            text: this.itemData,
        });
        logUtil.info("setting entryComponent action end");
    }
}